new Vue({
	el: "#app",
	data: {
		imgUrl: "https://app.meijiangzi.com/static/mini_",
		ImgBaseUrl: "https://app.meijiangzi.com/static/",
		list: "",
		coin: 0
	},
	methods: {
		getData: function() {
			var t = this;
			wx.showLoading({
				title: "加载中",
				mask: !0
			}), this.$http.post(baseUrl + "/mjz/userPoints/api/userPoints", {}).then(function(a) {
				wx.hideLoading();
				var i = a.data;
				if (!i.success) return wx.hideLoading(), wx.showToast({
					title: i.description,
					icon: "none",
					duration: 2e3,
					mask: !0
				}), !1;
			  t.list = i.data, t.coin = i.data.pointsCash;
			}).catch(function(t) {
				wx.hideLoading(), wx.showToast({
					title: "网络错误，请检查网络",
					icon: "none",
					duration: 2e3,
					mask: !0
				});
			});
		},
		to_cashOut: function() {
		  if (!this.coin || this.coin < 0){
			wx.showToast({
			  title: "可提现积分不足",
			  icon: "none",
			  duration: 2e3,
			  mask: !0
			});
		  }else{
			  Jump.to(page.mine.cashOut, "coin_num=" + this.coin);
		  }
		}
	},
	created: function(){
		this.getData();
	}
});